var vm = new Vue({
    el:"#app",
    data: {
        // 保存点击的下标
        saveindex:0,     

       list:[
           { pic:"",name:"首页"},
           { pic:"",name:"爆爆团"},
           { pic:"",name:"订单"},
           { pic:"",name:"我的"},
       ]
    },
    methods: {
        Click(index){
            // 保存点击的按钮下标
            this.saveindex = index;
            console.log(this.saveindex)
        }
    },



})